package org.example.function;

import java.util.function.Function;

public class JavaMoney {
    public static void main(String[] args) {
        Function<String,Integer> func = String::length;
        System.err.println(func.apply("mkyong"));
        Function<String,Integer> func1 = s -> s.length();
        System.err.println(func1.apply("JohnConnor"));
    }
}
